package com.stylefeng.guns.modular.hhtb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.hhtb.dao.HhtbusersMapper;
import com.stylefeng.guns.modular.hhtb.model.Hhtbusers;
import com.stylefeng.guns.modular.hhtb.service.IHhtbusersService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 会员表 服务实现类
 * </p>
 *
 * @author wudi
 * @since 2018-09-05
 */
@Service
public class HhtbusersServiceImpl extends ServiceImpl<HhtbusersMapper, Hhtbusers> implements IHhtbusersService {
    @Autowired
    private HhtbusersMapper hhtbusersMapper;
    @Override
    public List<Map<String, Object>> selectAll(Page<Map<String, Object>> page, Hhtbusers hhtbusers) {

        List<Map<String, Object>> list = hhtbusersMapper.selectAll(page,hhtbusers);
        Integer total = hhtbusersMapper.selectAllCount(hhtbusers);
        page.setTotal(total);
        return list;
    }

}
